package com.study.web.entity;

import com.study.common.base.entity.BaseEntity;

/**
 * 角色权限关联实体类
 * SysRolePermission.java
 * @author yaojinshan
 * @since 2018年6月26日上午11:13:27
 */
public class SysRolePermission extends BaseEntity {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
     * 角色id
     */
    private Long roleId;
    /**
     * 权限id
     */
    private Long rightsId;

    public Long getRoleId() {
        return roleId;
    }
    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }
    public Long getRightsId() {
        return rightsId;
    }
    public void setRightsId(Long rightsId) {
        this.rightsId = rightsId;
    }
    
    /**
	 * 
	 */
	public SysRolePermission() {
		super();
	}
	/**
	 * @param roleId
	 * @param rightsId
	 */
	public SysRolePermission(Long roleId, Long rightsId) {
		this.roleId = roleId;
		this.rightsId = rightsId;
	}
	/**
     * @return String
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(getId());
        sb.append(", roleId=").append(roleId);
        sb.append(", rightsId=").append(rightsId);
        sb.append("]");
        return sb.toString();
    }
}